<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018-8-10
 * Time: 上午 09:11
 */
/*登陆情况*/
function is_login()
{
    session_start();
    if (empty($_SESSION['webuser'])) {
        header("Refresh:0;url=/index.php?c=author&a=login");
    } else {
        header("Refresh:0;url=/index.php?c=author&a=login&param=hello");
    }
}
/*查看数据库准备情况*/
require 'db/common.php';
$requiurePath = getAbsolutePath(__DIR__,'db/isExsist.php');
include $requiurePath;
if (DB_isset()) {
    is_login();
} else {
    header("Refresh:0;url=/view/template/install.html");
}